package com.bbcare.exportExcel.plat.entity;	

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @name:宝宝问卷详情	
 * @author:	
 * @createTime: 
 */	
	
@Entity	
@Table(name="t_babyQuestionDetail")	
public class BabyQuestionDetail {	
	
	@Id	
	@GenericGenerator(name="systemUUID",strategy="uuid")	
	@GeneratedValue(generator="systemUUID")	
	@Column(name="_id")
	private String id;
	
	//说明	
	@Column(name="_note")
	private String note;	
	
	//选择的选项Id	
	@Column(name="_optionId")
	private String optionId;	
	
	//分数	
	@Column(name="_sorce")
	private Integer sorce;	
	
	//类型	
	@Column(name="_type")
	private String type;	
	
	//所属问题
	@ManyToOne
    @JoinColumn(name="_question_id")
    private Question question;
    
    //关联问题名称
	@Column(name="_question_name")
    private String questionName;
	
	//所属宝宝问卷记录
	@ManyToOne
    @JoinColumn(name="_babyQuestionRecord_id")
    private BabyQuestionRecord babyQuestionRecord;
    
    //关联宝宝问卷记录名称
	@Column(name="_babyQuestionRecord_name")
    private String babyQuestionRecordName;

	//创建时间	
	@Column(name="_createTime")
	private Date createTime;
	
	public String getId() {	
		return id;	
	}	
	
	public void setId(String id) {	
		this.id = id;	
	}
	
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getOptionId() {	
		return optionId;	
	}	
	
	public void setOptionId(String optionId) {	
		this.optionId = optionId;	
	}
	
	public Integer getSorce() {	
		return sorce;	
	}	
	
	public void setSorce(Integer sorce) {	
		this.sorce = sorce;	
	}
	
	public String getType() {	
		return type;	
	}	
	
	public void setType(String type) {	
		this.type = type;	
	}
	
	public Question getQuestion() {	
		return question;	
	}
	
	public void setQuestion(Question question) {	
		this.question = question;	
	}
	
	public String getQuestionName() {	
		return questionName;	
	}
	
	public void setQuestionName(String questionName) {	
		this.questionName = questionName;	
	}
	
	public BabyQuestionRecord getBabyQuestionRecord() {	
		return babyQuestionRecord;	
	}
	
	public void setBabyQuestionRecord(BabyQuestionRecord babyQuestionRecord) {	
		this.babyQuestionRecord = babyQuestionRecord;	
	}
	
	public String getBabyQuestionRecordName() {	
		return babyQuestionRecordName;	
	}
	
	public void setBabyQuestionRecordName(String babyQuestionRecordName) {	
		this.babyQuestionRecordName = babyQuestionRecordName;	
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}